﻿<%@ Page Title="" Language="C#" MasterPageFile="~/kcadastro.Master" AutoEventWireup="true"
    CodeBehind="osList.aspx.cs" Inherits="Kcadastro.os.osList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!-- ===== Sidebar Close and Content Part start ====== -->
    <div id="content_wrap">
        <div class="title_bar">
            <h2 class="page_title">
               Listas de Ordem de Serviços</h2>
        </div>
        <div class="content_area">
<%--            <h3 class="cont_title">
                Listas da Ordem de Serviços</h3>--%>
            <asp:GridView ID="gv_lista" DataKeyNames="PK_IDos" runat="server" OnRowCommand="gv_lista_RowCommand"
                AutoGenerateColumns="False" OnPageIndexChanging="gv_lista_PageIndexChanging"
                AllowPaging="True" CssClass="tableMain" AlternatingRowStyle-CssClass="altr_raw"
                HeaderStyle-CssClass="title_raw" Width="100%" 
                onrowdatabound="gv_lista_RowDataBound">
<AlternatingRowStyle CssClass="altr_raw"></AlternatingRowStyle>
                <Columns>
                    <asp:BoundField DataField="PK_IDos" HeaderText="OS º" />
                    <asp:BoundField DataField="dt_reg" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Abertura" />
                    <asp:BoundField DataField="nomeOS" HeaderText="Nome" />
                    <asp:TemplateField HeaderText="TIPO">
                        <ItemTemplate>
                            <%# Eval("tpps").ToString() == "3" ? "PJ" : "PF"%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="qtd_registros" HeaderText="qtd" />
                    <asp:BoundField DataField="status" HeaderText="Status" />
               
                    <asp:ButtonField CommandName="visualizar" ControlStyle-CssClass="view" 
                        HeaderText="Ver" >
<ControlStyle CssClass="view"></ControlStyle>
                    </asp:ButtonField>
                    <%--<asp:ButtonField CommandName="apagar" Text="<img src='/imags/deletar_.gif'"  />--%>
                    <asp:TemplateField HeaderText="DEL">
                        <ItemTemplate>
                            <asp:Button ID="btnApagar" CommandName="apagar" Width="25px" Height="30px"  CssClass="delete"
                                runat="server" OnClientClick="return confirm('Confirma a exclusão deste registro?')">
                            </asp:Button>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>

<HeaderStyle CssClass="title_raw"></HeaderStyle>
            </asp:GridView>
        </div>
        <!-- close content_area -->
    </div>
    <div class="formulario">
    </div>
</asp:Content>
